package com.itheima.day11;

import java.io.File;
import java.io.IOException;

/*
3_  在某个目录下创建 100万个记事本
 */
public class Test01 {

    public static void main(String[] args) throws IOException {
        long start = System.currentTimeMillis();

        for (int i = 0; i < 1000000; i++) {
            File file = new File("G:\\wenben\\" + i + ".txt");
            file.createNewFile();
        }
        long end = System.currentTimeMillis();
        System.out.println("创建完毕耗时:"+(end-start));


    }
}
